<?php

    global $CFG;

    // Set to defaults if undefined
    if (!isset ($config->entityid)) {
        $config->entityid = 'max.feide.no';
    }
    if (!isset ($config->dologout)) {
        $config->dologout = '';
    }
    if (!isset ($config->notshowusername)) {
        $config->notshowusername = '';
    }

?>
<table cellspacing="0" cellpadding="5" border="0">

<tr valign="top" class="required">
    <td align="right"><?php print_string("auth_feide_entityid", "auth_feide"); ?>:</td>
    <td>
        <input name="entityid" type="text" size="30" value="<?php echo $config->entityid; ?>" />
    </td>
    <td><?php print_string("auth_feide_entityid_description", "auth_feide"); ?></td>
</tr>

<tr valign="top">
    <td align="right"><?php print_string("auth_feide_dologout", "auth_feide"); ?>:</td>
    <td>
        <input name="dologout" type="checkbox" <?php if($config->dologout) echo "CHECKED"; ?>" />
    </td>
    <td><?php print_string("auth_feide_dologout_description", "auth_feide"); ?></td>
</tr>

<tr valign="top">
    <td align="right"><?php print_string("auth_feide_notshowusername", "auth_feide"); ?>:</td>
    <td>
        <input name="notshowusername" type="checkbox" <?php if($config->notshowusername) echo "CHECKED"; ?>" />
    </td>
    <td><?php print_string("auth_feide_notshowusername_description", "auth_feide"); ?></td>
</tr>

<?php

print_auth_lock_options('feide', $user_fields, '<!-- empty help -->', true, false);

?>
</table>
